package nz.ac.massey.cs.compile;

import java.util.ArrayList;

import nz.ac.massey.cs.domain.Cell;

public class lesserConstraint extends AbstractConstraint {

	@Override
	public boolean isViolated() {
		ArrayList<Cell> cells = getCells();
		int valueOne = Integer.parseInt(cells.get(0).getValue());
		int valueTwo = Integer.parseInt(cells.get(1).getValue());
		if(valueOne < valueTwo)
		{
			return true;
		}
		return false;
	}

	@Override
	public void applyConstraintInfo(String constraintInfo) {
		// TODO Auto-generated method stub
		
	}

}
